// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import './assets/style/reset.css'
import './assets/style/main.css'
// import './assets/theme/index.css'
// import ElementUI from 'element-ui'
import axios from './assets/script/axios.js'
import store from './store/store'
Vue.prototype.$axios = axios

Vue.config.productionTip = false
// Vue.use(ElementUI)

router.beforeEach((to, from, next) => {
  if (to.path === '/') {
    next({ path: '/index' })
  } else {
    next()
  }
})

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
